<template>
  <div>
    <router-view></router-view>
    <!-- H5页面推荐下载app -->
    <open-app v-if="!isUniApp"></open-app>
  </div>
</template>

<script>
export default {
  name: 'App',
  data() {
    return {
      isUniApp: navigator.userAgent.indexOf('uni-app') !== -1,
    };
  },
};
</script>

<style>
* {
  margin: 0;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
}

html,
body {
  height: 100%;
}
body {
  color: #333;
  font-size: 13px;
  background: #f2f2f6;
}
</style>
